package com.xusheng.cli.mapper;

import com.xusheng.cli.common.base.MyBaseMapper;
import com.xusheng.cli.entity.videoModule.ShortVideoVO;
import com.xusheng.cli.entity.videoModule.Video;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface VideoMapper extends MyBaseMapper<Video> {

    List<Video> videoList(@Param("categoryId") Long categoryId, @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime, @Param("limit") int limit);

    List<Video> listByPlayCount();

    List<Video> listByLikeCount();

    List<ShortVideoVO> getShortVideoList(@Param("userId") Long userId, @Param("vip") Boolean vip, @Param("current") int current);

    List<Video> recommendList();

    List<Video> recommendLists();

}
